<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">客户报表</div>
    <div class="main_soso">
    <form action="/campaign/search_pack_report_by_custom.shtml">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		    <td width="19" height="30" align="center"><img src="../images/clean_011.gif" width="16" height="16" /></td>
		    <td>
		    packId:<input name="packId" type="text" value="${packId}" style="width:80px;" onkeypress="util.justNum();" class="inputwidth01" id="pdr.packId" maxlength="30" />&nbsp;&nbsp;
		    customId:<input name="channelId" type="text" value="${channelId}" style="width:80px;" onkeypress="util.justNum();" class="inputwidth01" id="pdr.channelId" maxlength="30" />&nbsp;&nbsp;
		      开始时间:
		      <input name="beginDate" value="<fmt:formatDate value="${beginDate}" pattern="yyyy-MM-dd"/>" type="text" class="date_type" id="textfield" readonly="readonly"  onclick="new Calendar().show(this);"/>
		       结束时间: 
		      <input name="endDate" value="<fmt:formatDate value="${endDate}" pattern="yyyy-MM-dd"/>" type="text" class="date_type" id="textfield" readonly="readonly"  onclick="new Calendar().show(this);"/>
		      明细: <input name="total"  value="1" <c:if test="${total=='1'}">checked="checked"</c:if>  type="checkbox"  />    
		        
		      </td>
		    <td align="left">
		      <input name="input7" type="submit" class="input01" value="搜索" /></td>
		  </tr>
		</table>
    </form>
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="25%">客户名称 (customId)</th>
          <th width="20%">时间</th>
          <c:if test="${total=='1'}"><th width="15%">产品包 (packId)</th><th width="10%">单价 </th></c:if> 
          <th width="10%">结算数 </th>
          <th width="10%">结算金额</th>
          <th></th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <tbody class="split">
      <!-- //0 SELECT c.COM_NAME,p.PACK_NAME,p.ID,p.PACK_PRICE,SUM(pdr.FACT_COUNT)-->
      <c:forEach items="${page_list.list}" var="o">
	      <tr>
	         <td width="25%">${o[0]}(${o[6]})</td>
	         <td width="20%"><fmt:formatDate value="${beginDate}" pattern="yyyy-MM-dd"/> 到 <fmt:formatDate value="${endDate}" pattern="yyyy-MM-dd"/></td>
	         
	         <c:if test="${total=='1'}"><td width="15%">${o[1]}(${o[2]})</td><td width="10%">${o[3]}</td></c:if> 
	         
	         <td width="10%">${o[4]}</td>
	         <td width="10%">${o[5]}</td>
	         <td >&nbsp;</td>
	      </tr>
      </c:forEach>
      </tbody>
    </table>
  </div>
  
  <app:page></app:page>
</div>
</body>
</html>
<script type="text/javascript"  src="/scripts/util.js"></script>
<script  src="/scripts/util.js" type="text/javascript"></script>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript">
  
     function us(id,s){
    	 if(confirm('确定操作?')){
    		 	window.location='/campaign/update_campaign_state.shtml?id='+id+'&state='+s; 
    	 }
     }

</script>